import request from "@/utils/http";
export interface WarningParams {
  eventTime: string;
  monitorName: string;
  eventImg: string;
}
export interface DataStructure {
  records: WarningParams[];
  total: number;
}

export const getWarningList = (params: Partial<WarningParams>) => {
  return request.get<DataStructure>("/carEventses", params);
  // return request.get<DataStructure>("/carEventses", params,{ retry: 3 });
};
export const getSingleWarningList = (params: number) => {
  return request.get<WarningParams>(`/carEventses/${params}`);
  // return request.get<DataStructure>("/carEventses", params,{ retry: 3 });
};
